home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1997 January / Macworld (1997-01).dmg / Updaters / NPWDEF / NPWDEF WARNING & ReadMe < prev   
Text File  |  1996-10-14  |  6KB  |  103 lines

  1. NPWDEF 0.5b1 Warning and ReadMe
  2.  
  3. ***WARNING*** 
  4. NPWDEF alters files in much the same way that ResEdit can. Therefore, all the standard warnings about doing things with ResEdit apply to NPWDEF. Work on duplicate copies and back up your files before running NPWDEF. Above all, be careful and see the disclaimer.
  5.  
  6. What it does
  7. NPWDEF (short for No Purge WDEFs) deals with a potential source of instability in the Mac OS. If an application or control panel uses a custom resource of type 'WDEF' that is purgeable, the application could crash under certain circumstances. Vik Rubenfeld reported this problem on comp.sys.mac.programmer October 8, 1996, and received a reply from Apple. I have included that posting below. The problem reportedly becomes more acute under low memory conditions and System 7.5. NPWDEF sets all resources of type 'WDEF' that it finds to unpurgeable, thus eliminating this possible problem.  You could use ResEdit to fix all your files by hand, but NPWDEF can fix all the files inside a folder or disk at one time.
  8.  
  9. You probably have an application or two on your hard drive that has a purgeable WDEF, for example, Microsoft Word and Microsoft Excel. Note that although the System file contains purgeable WDEFs, the problem does not apply to it. 
  10.  
  11. To use it
  12. NPWDEF is fully drag and droppable; simply drag and drop any file, folder or disk onto the icon, and NPWDEF will set all WDEFs it finds that are purgeable to be unpurgeable. Or choose 'Open' from the File menu and choose the desired disk, folder or file. NPWDEF will search and examine all enclosed subfolders and files. NPWDEF can't modify files that are already open, so it won't work on open applications or the active System file. 
  13.  
  14. NPWDEF should run on any Mac that is running System 7.
  15.  
  16. NPWDEF lets you know what it's doing and tells you about any files it finds that have purgeable WDEFs. If there is sufficient interest, I will add a log file and an option just to scan for purgeable WDEFs, rather than just forcing them to be unpurgeable. If you would like this feature, let me know at the contact address below.
  17.  
  18. Disclaimer
  19. Normally an app relies on a resource being unpurgeable rather than purgeable, but it is entirely possible that some application depends on having a purgeable WDEF. I can't imagine why someone would do it that way, but it is possible. Therefore, using NPWDEF could actually make your app more unstable.
  20.  
  21. Also, as noted in the warning above, NPWDEF messes with resources. It could do something to your system that will make it worse rather than better. It could even hammer your disk so badly that you lose everything on it. I honestly don't think it will, but I don't know for sure and can't test it beyond a couple of Macs I have. I certainly haven't tested it on very many different versions of the Mac OS or with all the extensions and applications out there. At any rate, use this software at your own risk! Be careful. Back up important data.
  22.  
  23. Distribution
  24. No Purge WDEFs 0.5 is copyright 1996 Sterling Augustine
  25. No Purge WDEFs is freeware, but I retain the copyright. When distributing it, you must include a copy of this file. If NPWDEF is included in any software compilation distributed for money, such as a CD-ROM, the distribution must send me a copy of the compilation.
  26.  
  27. Contacting me
  28. Snail mail
  29. Sterling Augustine
  30. 100 Norman St.
  31. Lafayette, LA 70508
  32.  
  33. Email
  34. Sterling_Augustine@shodor.org
  35.  
  36. Version History
  37. 0.5b1    October 11, 1996: First Public Release
  38.  
  39.  
  40. Vik Rubenfeld's Orginal Posting with the reply from Troy Gaul
  41. (included by permission)
  42.      Path: usenet73.supernews.com!uunet!in1.uu.net!dobie.loop.net!news
  43.      From: Vik Rubenfeld VikR@aol.com
  44.      Newsgroups: comp.sys.mac.system
  45.      Subject: A MacOS BugFix
  46.      Date: Tue, 08 Oct 1996 17:08:07 -0800
  47.      Organization: The Loop
  48.      Lines: 38
  49.      Distribution: inet
  50.      Message-ID: 325AFAF7.39A@aol.com
  51.      NNTP-Posting-Host: pma3_128.loop.com
  52.      Mime-Version: 1.0
  53.      Content-Type: text/plain; charset=us-ascii
  54.      Content-Transfer-Encoding: 7bit
  55.      X-Mailer: Mozilla 2.02 (Macintosh; I; PPC)
  56.  
  57.      For many months, my Mac had been crashing once or twice a day, usually
  58.      when I was closing an app, or using the Application menu to bring
  59.      another app into the foreground. I posted email about this to
  60.      comp.sys.mac.programmer.misc, and got a very valuable reply back from
  61.      Troy Gaul, of Apple.
  62.  
  63.      TG> This will happen if an application is using a WDEF that has it's
  64.      TG> Purgeable bit set on the resource.
  65.      TG>
  66.      TG> The problem is that if the resource gets purged and the Toolbox
  67.      TG> tries to reload it when another application's resources are in use,
  68.      TG> the resource will not be available and the system will put up this
  69.      TG> system error. For me, System 7.5 and later seemed to worsen the
  70.      TG> problem.
  71.  
  72.      I checked many apps, and found purgeable WDEFs in the following
  73.      applications:
  74.  
  75.      -Microsoft Word 6
  76.      -Microsoft Excel 5
  77.      -Stuffit Engine
  78.      -Stuffit Lite
  79.      -Claris Organizer 1.0
  80.      -Compuserve Information Manager
  81.  
  82.      I used Resorcerer to make those WDEFs non-purgeable. The crashes
  83.      stopped.
  84.  
  85.      It may be advisable for anyone getting crashes of this nature to use
  86.      ResEdit or Resorcerer to make WDEFs in the above applications,
  87.      non-purgeable.
  88.  
  89.      All application developers should see to it that their applications
  90.      contain no purgeable WDEFs.
  91.  
  92.      Apple may want to consider a future revision to system software that
  93.      forces all WDEF resources to be non-purgeable.
  94.  
  95.      Note: The System file has some purgeable WDEFs in it. This is okay,
  96.      because, again per Troy, the System file's resources are always
  97.      available.
  98.  
  99.      -Vik
  100.  
  101.                           
  102.  
  103.